using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;
using Planisoft.Entities;


namespace Planisoft.DAO.Mapping
{
    public class UbigeoViaMap : EntityTypeConfiguration<UbigeoVia>
    {
        public UbigeoViaMap()
        {
            // Primary Key
            this.HasKey(t => t.IdVia);

            // Properties
            this.Property(t => t.CodPdtUbiVia)
                .HasMaxLength(10);

            // Table & Column Mappings
            this.ToTable("UbigeoVia");
            this.Property(t => t.IdVia).HasColumnName("IdVia");
            this.Property(t => t.CodPdtUbiVia).HasColumnName("CodPdtUbiVia");
            this.Property(t => t.DescUbiVia).HasColumnName("DescUbiVia");
        }
    }
}
